package com.blrs.domain;

import java.util.Date;

import com.blrs.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.blrs.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 外部文件对象 external_document
 * 
 * @author ruoyi
 * @date 2023-11-01
 */
public class ExternalDocument extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private Integer orderNum;
    /** 内部文件id */
    private String externalId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件柜id */
    @Excel(name = "文件柜id")
    private String cabinetId;

    /** 文件柜名称 */
    @Excel(name = "文件柜名称")
    private String cabinetName;

    /** 文件编号 */
    @Excel(name = "文件编号")
    private String documentNumber;

    /** 建立时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "建立时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date establishmentTime;

    /** 建立人id */
    @Excel(name = "建立人id")
    private String establishedId;

    /** 建立人 */
    @Excel(name = "建立人")
    private String establishedName;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date effectiveTime;

    /** 版本 */
    @Excel(name = "版本")
    private String version;

    /** 状态 */
    @Excel(name = "状态")
    private String state;

    /** 管理部门 */
    @Excel(name = "管理部门")
    private String managementDepartment;

    /** 变更人id */
    @Excel(name = "变更人id")
    private String changedId;

    /** 变更人 */
    @Excel(name = "变更人")
    private String changedName;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 操作人id */
    @Excel(name = "操作人id")
    private Long operateId;

    /** 操作人姓名 */
    @Excel(name = "操作人姓名")
    private String operateName;

    /** 部门id */
    @Excel(name = "部门id")
    private Long departmentId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String departmentName;

    /** 组织机构id */
    @Excel(name = "组织机构id")
    private Long organizationId;

    /** 组织机构名称 */
    @Excel(name = "组织机构名称")
    private String organizationName;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long creationId;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String creationName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 归属于 */
    @Excel(name = "归属于")
    private Long belongTo;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String fileUrl;
    /** 附件类型 */
    @Excel(name = "附件地址")
    private String fileType;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String fjFileName;

    /** 只读 */
    @Excel(name = "只读")
    private String readOnly;

    /** 读写 */
    @Excel(name = "读写")
    private String readWrtie;

    /**
     * 读写权限id
     */
    @Excel(name = "读写权限id")
    private String readWritePermissionId;
    private String mainName;

    public String getMainName() {
        return mainName;
    }

    public void setMainName(String mainName) {
        this.mainName = mainName;
    }

    /**
     * 读写权限
     */
    @Excel(name = "读写权限")
    private String readWritePermission;
    public Integer getOrderNum()
    {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }
    public void setReadWritePermissionId(String readWritePermissionId) {
        this.readWritePermissionId = readWritePermissionId;
    }

    public String getReadWritePermissionId() {
        return readWritePermissionId;
    }

    public void setReadWritePermission(String readWritePermission) {
        this.readWritePermission = readWritePermission;
    }

    public String getReadWritePermission() {
        return readWritePermission;
    }
    public void setReadWrtie(String readWrtie)
    {
        this.readWrtie = readWrtie;
    }

    public String getReadWrtie()
    {
        return readWrtie;
    }

    public void setReadOnly(String readOnly)
    {
        this.readOnly = readOnly;
    }

    public String getReadOnly()
    {
        return readOnly;
    }

    public void setFjFileName(String fjFileName)
    {
        this.fjFileName = fjFileName;
    }

    public String getFjFileName()
    {
        return fjFileName;
    }

    public void setFileUrl(String fileUrl)
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl()
    {
        return fileUrl;
    }
    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }
    public void setExternalId(String externalId)
    {
        this.externalId = externalId;
    }

    public String getExternalId()
    {
        return externalId;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setCabinetId(String cabinetId) 
    {
        this.cabinetId = cabinetId;
    }

    public String getCabinetId() 
    {
        return cabinetId;
    }
    public void setCabinetName(String cabinetName) 
    {
        this.cabinetName = cabinetName;
    }

    public String getCabinetName() 
    {
        return cabinetName;
    }
    public void setDocumentNumber(String documentNumber) 
    {
        this.documentNumber = documentNumber;
    }

    public String getDocumentNumber() 
    {
        return documentNumber;
    }
    public void setEstablishmentTime(Date establishmentTime) 
    {
        this.establishmentTime = establishmentTime;
    }

    public Date getEstablishmentTime() 
    {
        return establishmentTime;
    }
    public void setEstablishedId(String establishedId) 
    {
        this.establishedId = establishedId;
    }

    public String getEstablishedId() 
    {
        return establishedId;
    }
    public void setEstablishedName(String establishedName) 
    {
        this.establishedName = establishedName;
    }

    public String getEstablishedName() 
    {
        return establishedName;
    }
    public void setEffectiveTime(Date effectiveTime) 
    {
        this.effectiveTime = effectiveTime;
    }

    public Date getEffectiveTime() 
    {
        return effectiveTime;
    }
    public void setVersion(String version) 
    {
        this.version = version;
    }

    public String getVersion() 
    {
        return version;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setManagementDepartment(String managementDepartment) 
    {
        this.managementDepartment = managementDepartment;
    }

    public String getManagementDepartment() 
    {
        return managementDepartment;
    }
    public void setChangedId(String changedId) 
    {
        this.changedId = changedId;
    }

    public String getChangedId() 
    {
        return changedId;
    }
    public void setChangedName(String changedName) 
    {
        this.changedName = changedName;
    }

    public String getChangedName() 
    {
        return changedName;
    }
    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }
    public void setOperateId(Long operateId) 
    {
        this.operateId = operateId;
    }

    public Long getOperateId() 
    {
        return operateId;
    }
    public void setOperateName(String operateName) 
    {
        this.operateName = operateName;
    }

    public String getOperateName() 
    {
        return operateName;
    }
    public void setDepartmentId(Long departmentId) 
    {
        this.departmentId = departmentId;
    }

    public Long getDepartmentId() 
    {
        return departmentId;
    }
    public void setDepartmentName(String departmentName) 
    {
        this.departmentName = departmentName;
    }

    public String getDepartmentName() 
    {
        return departmentName;
    }
    public void setOrganizationId(Long organizationId) 
    {
        this.organizationId = organizationId;
    }

    public Long getOrganizationId() 
    {
        return organizationId;
    }
    public void setOrganizationName(String organizationName) 
    {
        this.organizationName = organizationName;
    }

    public String getOrganizationName() 
    {
        return organizationName;
    }
    public void setCreationId(Long creationId) 
    {
        this.creationId = creationId;
    }

    public Long getCreationId() 
    {
        return creationId;
    }
    public void setCreationName(String creationName) 
    {
        this.creationName = creationName;
    }

    public String getCreationName() 
    {
        return creationName;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }
    public void setBelongTo(Long belongTo) 
    {
        this.belongTo = belongTo;
    }

    public Long getBelongTo() 
    {
        return belongTo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("externalId", getExternalId())
            .append("fileName", getFileName())
            .append("cabinetId", getCabinetId())
            .append("cabinetName", getCabinetName())
            .append("documentNumber", getDocumentNumber())
            .append("establishmentTime", getEstablishmentTime())
            .append("establishedId", getEstablishedId())
            .append("establishedName", getEstablishedName())
            .append("effectiveTime", getEffectiveTime())
            .append("version", getVersion())
            .append("state", getState())
            .append("managementDepartment", getManagementDepartment())
            .append("changedId", getChangedId())
            .append("changedName", getChangedName())
            .append("operateTime", getOperateTime())
            .append("operateId", getOperateId())
            .append("operateName", getOperateName())
            .append("departmentId", getDepartmentId())
            .append("departmentName", getDepartmentName())
            .append("organizationId", getOrganizationId())
            .append("organizationName", getOrganizationName())
            .append("creationId", getCreationId())
            .append("creationName", getCreationName())
            .append("creationTime", getCreationTime())
            .append("belongTo", getBelongTo())
            .toString();
    }
}
